package com.song.dao.role;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.song.entity.role.UserRole;
import com.song.entity.role.UserRoleInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleDao extends BaseMapper<UserRole> {

    List<UserRoleInfo> selectUserRoles(Integer userId);

    List<Integer> selectRoleIdsByUserId(Integer userId);

    int batAddUserRole(List<UserRole> list);
}
